package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Orders;
import com.sky.result.PageBean;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {

    //用户下单(点击去支付)
    OrderSubmitVO save(Orders orders);


    //用户支付
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    //历史订单查询->管理端订单查询
    PageBean<OrderVO> findByPage(OrdersPageQueryDTO ordersPageQueryDTO);

    //订单详情查询
    OrderVO findById(Long id);


    void cancelById(Long id);


    void repetitionById(Long id);

    //订单数量统计
    OrderStatisticsVO statistics();

    //接单
    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    //拒单
    void rejection(OrdersRejectionDTO dto);

    //取消订单
    void cancel(OrdersCancelDTO dto);

    //派送订单
    void delivery(Long id);

    //完成订单
    void complete(Long id);

    //催单
    void reminderById(Long id);
}
